
<table class="table table-bordered">
    <tr class="alert-success">
        <th>ID</th>
        <th>用户名</th>
        <th>手机号</th>
        <th>等级</th>
	    <th>余额</th>
        <th>积分</th>
        <th>话费余额</th>
        <th>优惠券余额</th>
        <th>押金余额</th>
        <th>话费到期时间</th>
    </tr>
	<tr>
        <td>{$user.id}</td>
        <td>{$user.username}</td>
        <td>{$user.mobile}</td>
        <td>{$user.level}</td>
        <td>{$user.balance}</td>
        <td>{$user.integral}</td>
        <td>{$user.phone_balance}</td>
        <td>{$user.voucher_balance}</td>
        <td>{$user.deposit_balance}</td>
        <td>{$user.phone_time|datetime}</td>
    </tr>
</table>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">充值帐号:</label>
        <div class="col-xs-12 col-sm-4">
            {:build_select('row[type]', $accountList, 1)}
        </div>
    </div>

    <div class="form-group">
        <label for="c-amount" class="control-label col-xs-12 col-sm-2">充值金额:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="number"data-rule="required" name="row[amount]" id="c-amount" class="form-control">
        </div>
    </div>
    <div class="form-group">
        <label for="c-remark" class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="text" name="row[remark]" id="c-remark" class="form-control">
        </div>
    </div>

    <div class="form-group">
        <label for="c-days" class="control-label col-xs-12 col-sm-2">添加话费有效期天数:</label>
        <div class="col-xs-12 col-sm-4">
            <input type="number" name="row[days]" id="c-days" class="form-control">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
